<template>
  <div class="Serve">
    <el-tabs v-model="activeName" class="servetab">
      <el-tab-pane label="服务商列表"  name="first">
        <ServerList v-if='activeName=="first"'/>
      </el-tab-pane>
      <el-tab-pane label="操作员工"  name="second">
        <MaintenanceStaff v-if='activeName=="second"'/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import ServerList from "../Service/ServerList";
import MaintenanceStaff from "../Service/MaintenanceStaff";
export default {
  data() {
    return {
      activeName: "first"
    };
  },
  components: {
    ServerList,
    MaintenanceStaff,
  }
};
</script>
<style lang="less">
.Serve {
  width: 95%;
  border: 1px solid #edeff4;
  background: #fff;

  .el-tabs__nav-scroll {
    overflow: hidden;
    display: flex;
    justify-content: center;
    justify-items: center;
    padding: 30px;
  }
  .el-tabs__item {
    font-size: 18px;
    font-family: "Microsoft YaHei";
  }
}
</style>